/* MongoDB schema for Gene API model */

var Disease = require('./DiseaseSchema.js').Disease,
    mongoose = require('mongoose'),
    Schema = mongoose.Schema;

var GeneSchemaModel = new Schema({
    id          : { type: Number, required: true },
    symbol : { type: String, required: true },
    name   : { type: String, required: true },
    family      : String,
    links : {
        diseases : [Number]
    }
});

var GeneSchema = exports.GeneSchema = mongoose.model('Gene', GeneSchemaModel, 'genes');
